import Layout from '@/layout'

const finance = {
  path: '/finance',
  component: Layout,
  redirect: '/finance/pandect',
  meta: { title: 'finance', icon: 'link', noCache: true },
  name: 'Finance',
  children: [
    {
      path: 'pandect',
      meta: { title: 'pandect', noCache: true },
      component: () => import('@/views/finance/pandect'),
      name: 'Pandect'
    },
    {
      path: 'bill',
      meta: { title: 'bill', noCache: true },
      component: () => import('@/views/finance/bill'),
      name: 'Bill'
    },
    {
      path: 'withdraw',
      meta: { title: 'withdraw', noCache: true },
      component: () => import('@/views/finance/withdraw'),
      name: 'Withdraw',
      children: [
        {
          path: 'withdrawDetail',
          meta: { title: 'withdrawDetails', noCache: true },
          component: () => import('@/views/finance/withdraw/children/detail'),
          name: 'WithdrawDetail',
          hidden: true
        }
      ]
    }
  ]
}
export default finance
